package dfbz.字符输入流;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class demo {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader(new File("D:\\testFileReader.txt"));
        int len;
        char[] chars=new char[1024];
       while ((len=fr.read(chars))!=-1){
           System.out.print(new String(chars));
       }
    }
}
